﻿@model LeEdu.MODEL.Courses

@{
    Layout = null;
}

<!DOCTYPE html>

<html>


 <!-- 网页导航菜单分布视图 -->
@Html.Partial("~/Views/Shared/HouTai_Header.cshtml")

<body>
    <!-- 网页导航菜单分布视图 -->
    @Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")
   
        
      
    <div class="container">
        <div class="row">

            <!-- 网页左侧菜单分布视图 -->
            @Html.Partial("~/Views/Shared/CouseCreateManage_Menu_Left.cshtml")


            <div class="col-md-10">

                <div class="panel panel-default panel-col">
                    <div class="panel-heading">基本信息</div>
                    <div class="panel-body" >
                        <form data-widget-cid="widget-0" novalidate="novalidate" class="form-horizontal" id="course-form" method="post" action="/Course/CourseCreateManage1">                         

                            <div class="form-group">
                                <label class="col-md-2 control-label">标题</label>
                                <div class="col-md-10 controls">
                                    <input type="text" id="course_title" name="CTitle" value="@Model.CTitle" required="required" class="form-control">
                                    <div class="help-block" style="display:none;"></div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">副标题</label>
                                <div class="col-md-10 controls">
                                    <textarea id="course_subtitle" name="CSutTitle" required="required" class="form-control">@Html.Raw(Model.CSutTitle)</textarea>
                                    <div class="help-block" style="display:none;"></div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">老师</label>
                                <div class="col-md-10 controls">
                                    @Html.TextBox("CreatePeople", Model.CreatePeople, new { @class = "form-control width-input width-input-large", @readonly = "readonly" })
                                  
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 control-label">标签</label>
                                <div class="col-md-10 controls">
                                    @*ViewBag.LableId as SelectList,*@
                                    
                                   @Html.DropDownList("LableId", null, new { @class = "form-control width-input width-input-large" })
                                   <div class="help-block">将会应用于按标签搜索课程、相关课程的提取等</div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">课程购买</label>
                                <div class="col-md-10 controls radios">
                                    @if (Model.CBuy == 1||Model.CBuy==null)
                                    {
                                        <label><input type="radio" name="CBuy" value="1" checked="checked"> 开启</label>
                                        <label><input type="radio" name="CBuy" value="0"> 关闭</label>
                                    }
                                    else
                                    {
                                        <label><input type="radio" name="CBuy" value="1" > 开启</label>
                                        <label><input type="radio" name="CBuy" value="0" checked="checked"> 关闭</label>
                                    }
                                   
                                    <div class="help-block">关闭后课程将无法在线购买加入、由教师/管理员后台导入。</div>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-md-2 control-label" for="course_expiryDay">学员有效期</label>
                                <div class="col-md-10 controls">
                                    @Html.TextBox("CValidity",Model.CValidity, new {@class="form-control width-input width-input-large" }) 天
                                    <div class="help-block">设置该值后，学员只能在有效期内进行课程的相关操作，系统默认会在到期前10天提醒学员。该值为0，则不做此限制。</div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label" for="course_expiryDay">课程价格</label>
                                <div class="col-md-10 controls">
                                    @Html.TextBox("CPrice",Model.CPrice, new { @class = "form-control width-input width-input-large" }) 元
                                   
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">连载状态</label>
                                <div class="col-md-10 controls radios">
                                    @if (Model.CState == 0)
                                    {
                                        <label><input type="radio" id="fei" name="CState" value="0" checked="checked"> 非连载课程</label>
                                        <label><input type="radio" id="gx" name="CState" value="1" > 更新中</label>
                                        <label><input type="radio" id="wj" name="CState" value="2"> 已完结</label>
                                    }
                                    else
                                        if (Model.CState == 1)
                                        {
                                            <label><input type="radio" id="fei" name="CState" value="0"> 非连载课程</label>
                                            <label><input type="radio" id="gx" name="CState" value="1" checked="checked"> 更新中</label>
                                            <label><input type="radio" id="wj" name="CState" value="2"> 已完结</label>
                                        }
                                        else
                                        {
                                            <label><input type="radio" id="fei" name="CState" value="0"> 非连载课程</label>
                                            <label><input type="radio" id="gx" name="CState" value="1" > 更新中</label>
                                            <label><input type="radio" id="wj" name="CState" value="2" checked="checked"> 已完结</label>
                                        }
                                    

                                </div>
                            </div>



                            <div class="form-group">
                                <label class="col-md-2 control-label">分类</label>
                                <div class="col-md-10 controls">
                                    
                                      @Html.DropDownList("CollegeId", null,  new { @class = "form-control width-input width-input-large" })
                                    <div class="help-block" style="display:none;"></div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-offset-2 col-md-8 controls">
                                    <button class="btn btn-fat btn-primary" id="course-create-btn" type="submit" >保存</button>
                                </div>
                            </div>
                            <input type="hidden" name="_csrf_token" value="977dd2f12dfb7e93eeda367239a3e437cb478c91">
                        </form>
                    </div>
                </div>
            </div>
        </div>



    </div>
   <div id="modal" class="modal"></div>
    <div class="fixed-bar">
        <a href="/admin/feedback" target='_blank' class="icon-question-text feedback">
            <i class="es-icon es-icon-help"></i>
            <span>产品<br />反馈</span>
        </a>
    </div>
</body>

</html>